package com.orderplus.opshop.synces.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhouxj6112 on 2019/1/6.
 */
@Data
@TableName("product_property_list")
@EqualsAndHashCode(callSuper=false)
public class ProductPropertyList extends Model<ProductPropertyList> {
    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    @TableField("spu_id")
    private long spuId;
    @TableField("property_id")
    private Integer propertyId;
    @TableField("property_value")
    private String propertyValue;
    @TableField("property_value_zh")
    private String propertyValueZh;
    @TableField("property_value_th")
    private String propertyValueTh;
    @TableField("property_value_id")
    private String propertyValueId;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
